Add google_apigee_data_collector resource#16954
Add google_apigee_data_collector resource#16954ogormans-deptstack wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @NickElliot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
I signed the CLA after the fact please rerun |
#16955 passed on my other contribution so we should be good |
Adds the
google_apigee_data_collectorresource to the Google provider, enabling Terraform management of Apigee DataCollectors for custom analytics and API monetization.This is a rewrite of #11655, which was opened under the old Ruby generator format. As noted by @rileykarson in that PR, the generator has since moved to Go with generic YAML types. This PR follows the current conventions.
Resource Details
apigee.googleapis.com/v1/organizations/{org}/datacollectorsorg_id(required, immutable) - Apigee organizationdata_collector_id(required, immutable) - Must begin withdc_, validated via regextype(required, immutable) - Enum: INTEGER, FLOAT, STRING, BOOLEAN, DATETIMEdescription(optional, mutable) - Only updatable fieldname,created_at,last_modified_at(computed, output-only)Testing
Built the provider locally and tested all CRUD operations against a real Apigee eval organization:
organizations/{org}/datacollectors/{id}) worksFiles
mmv1/products/apigee/DataCollector.yaml- Resource definitionmmv1/templates/terraform/custom_import/apigee_data_collector.go.tmpl- Import logic for org-scoped resourcesmmv1/templates/terraform/examples/apigee_data_collector_basic.tf.tmpl- Docs examplemmv1/templates/terraform/examples/apigee_data_collector_basic_test.tf.tmpl- Acceptance test exampleModeled on existing Apigee resources (
AppGroup,Envgroup) for consistency.